package net.xmmpp.uc.im.internal.web.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


//@Component
@Configuration
@ConfigurationProperties(prefix = "app.flink")
public class FlinkProperties {
    private String jobName;
    private String jobHost = "localhost";
    private int jobPort = 8080;
    private String stateHost = "localhost";
    private int statePort = 9060;


    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobHost() {
        return jobHost;
    }

    public void setJobHost(String jobHost) {
        this.jobHost = jobHost;
    }

    public int getJobPort() {
        return jobPort;
    }

    public void setJobPort(int jobPort) {
        this.jobPort = jobPort;
    }

    public String getStateHost() {
        return stateHost;
    }

    public void setStateHost(String stateHost) {
        this.stateHost = stateHost;
    }

    public int getStatePort() {
        return statePort;
    }

    public void setStatePort(int statePort) {
        this.statePort = statePort;
    }

    @Override
    public String toString() {
        return "FlinkProperties{" +
                "jobName='" + jobName + '\'' +
                ", jobHost='" + jobHost + '\'' +
                ", jobPort=" + jobPort +
                ", stateHost='" + stateHost + '\'' +
                ", statePort=" + statePort +
                '}';
    }
}
